﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer;
using System.Data;
using System.Data.OleDb;
using InfoLayer;

namespace ControlLayer
{
    public class KhachHangControl
    {
        private KhachHangDataAccess KhachHangDA = new KhachHangDataAccess();

        public DataTable LayBangDanhSachKhachHang()
        {
            return KhachHangDA.LayBangDanhSachKhachHang();
        }

        public void Insert(ref KhachHangInfo khachHangInfo)
        {
            KhachHangDA.Insert(ref khachHangInfo);
        }

        public void Update(KhachHangInfo khachHangInfo)
        {
            KhachHangDA.Update(khachHangInfo);
        }

        public void Delete(KhachHangInfo khachHangInfo)
        {
            KhachHangDA.Delete(khachHangInfo);
        }

        public string TaoMaTuDong(string maGoc, int batDau)
        {
            return KhachHangDA.TaoMaTuDong(maGoc, batDau);
        }

        public DataTable LayKhachHang(String _MaKhachHang)
        {
            return KhachHangDA.LayKhachHang(_MaKhachHang);
        }

    }
}
